$(document).ready(function(){
    $('#searchFilters a').live('click', function(e) {
        $.get(
            //"/player/search/by/"+$(this).attr('id')+"/with/"+$("input[@name='filterGroup']:checked").val(),
            "/player/search/squad_id/"+$('#squad').val()+"/by/"+$(this).attr('id')+"/with/"+$("input[@name='filterGroup']:checked").val(),
            function(data) {
                $('#results').html(data).hide().slideDown( 2000 );
            }, "html"
        );
    });
    /* IF YOU WANT TO SEARCH BY SINGLE <ID>
    $('#search_by_all').click(function(){
        $.get(
            "/player/search/by/all",
            function(data) {
                $('#results').html(data);
            }, "html"
        );
    });
    */
});
